<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/transfer/tenantTransfer.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>财务管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>提现设置</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<%--<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">余额提现</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t layui-form" id="frmTenantTransfer">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">是否启用余额提现功能：</label>
                            <div class="col-sm-1">
                                <input type="radio" class="form-control" name="status" lay-filter="status"
                                       title="启用" value="0"
                                       <c:if test="${tenantOpenService.status == '0'}">checked</c:if> >
                            </div>
                            <div class="col-sm-1">
                                <input type="radio" class="form-control" name="status"
                                       lay-filter="status" title="停用" value="1" lay-filter="status"
                                       <c:if test="${tenantOpenService.status == '1'}">checked</c:if>     >
                            </div>
                            <span style="display: inline;color: #888888">*启用后财务管理菜单下出现余额提现子菜单</span>
                        </div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-3 col-form-label text-right">是否开启短信验证：</label>
                                <div class="col-sm-1">
                                    <input type="radio" class="form-control" name="isVerification"
                                           title="开启" value="0"
                                           <c:if test="${tenantTransfer.isVerification == '0'}">checked</c:if> >
                                </div>
                                <div class="col-sm-1">
                                    <input type="radio" class="form-control" name="isVerification" title="关闭" value="1"
                                           <c:if test="${tenantTransfer.isVerification == '1'}">checked</c:if> >
                                </div>
                                <span style="display: inline;color: #888888">*开启短信验证后,每次审核提现都需要输入验证码</span>
                            </div>
                        </div>
                        <div class="statusDiv">
                            <div class="form-group row">
                                <label class="col-sm-3 col-form-label text-right">选择需要展示的前端：</label>
                                <div class="col-sm-1">
                                    <input type="checkbox" class="form-control" name="show"
                                           lay-filter="show"
                                           <c:if test="${tenantTransfer.showForWx == '0'}">checked</c:if>
                                           title="微信公众号" value="0">
                                </div>
                                <div class="col-sm-1">
                                <input type="checkbox" class="form-control" name="show"
                                lay-filter="show" title="APP" value="1"
                                <c:if test="${tenantTransfer.showForApp == '0'}">checked</c:if> >
                                </div>
                                <span style="display: inline;color: #888888">&emsp;&emsp;&emsp;*勾选后用户可以在对应途径发起提现</span>
                            </div>
                            <div class="showDiv">
                                <div class="form-group row">
                                    <label class="col-sm-3 col-form-label text-right">用户可以选择的提现途径 ：</label>
                                    <div class="col-sm-1 transferForDiv">
                                        <input type="checkbox" class="form-control" name="transferFor"
                                               lay-filter="transferFor"
                                               <c:if test="${tenantTransfer.transferForWx == '0'}">checked</c:if>
                                               title="微信" value="0">
                                    </div>
                                    <span style="display: inline;color: #888888">*勾选后用户可提现到对应途径,微信途径支持自动提现</span>
                                    &lt;%&ndash;<div class="col-sm-1">&ndash;%&gt;
                                    &lt;%&ndash;<input type="checkbox" class="form-control" name="transferFor"&ndash;%&gt;
                                    &lt;%&ndash;lay-filter="transferFor" title="支付宝" value="1">&ndash;%&gt;
                                    &lt;%&ndash;</div>&ndash;%&gt;
                                    &lt;%&ndash;<div class="col-sm-1">&ndash;%&gt;
                                    &lt;%&ndash;<input type="checkbox" class="form-control" name="transferFor"&ndash;%&gt;
                                    &lt;%&ndash;lay-filter="transferFor" title="银行卡" value="2">&ndash;%&gt;
                                    &lt;%&ndash;</div>&ndash;%&gt;
                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-3 col-form-label text-right">提现操作方式 ：</label>
                                    <div class="col-sm-3">
                                        <div class="transferType0">
                                            <input type="radio" class="form-control" name="transferType"
                                                   lay-filter="transferType"
                                                   <c:if test="${tenantTransfer.transferType == '0'}">checked</c:if>
                                                   title="人工转账" value="0" disabled>
                                        </div>
                                        <div  class="transferType1">
                                            <input type="radio" class="form-control" name="transferType"
                                                   lay-filter="transferType"
                                                   <c:if test="${tenantTransfer.transferType == '1'}">checked</c:if>
                                                   title="系统自动转账" value="1" disabled>
                                        </div>
                                    </div>
                                </div>


                                <div class="form-group row">
                                    <label class="col-sm-3 col-form-label text-right">用户每月可提现次数：</label>
                                    <div class="col-sm-3">
                                        <input class="form-control" id="memberMonthTransferMax"
                                               name="memberMonthTransferMax"
                                               value="${tenantTransfer.memberMonthTransferMax}">
                                    </div>
                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-3 col-form-label text-right">用户每次可以提现最小金额：</label>
                                    <div class="col-sm-3">
                                        <input class="form-control" id="memberTransferMin" name="memberTransferMin"
                                               value="${tenantTransfer.memberTransferMin}">
                                    </div>
                                    <span>元</span>
                                    <span style="display: inline;color: #888888">&emsp;&emsp;*自动提现最小金额设置不得小于1元</span>
                                </div>

                                <div class="form-group row">
                                    <label class="col-sm-3 col-form-label text-right">提现时间提醒：</label>
                                    <span>系统已收到您的申请，将在</span>
                                    <div class="col-sm-3">
                                        <input class="form-control" placeholder="2个工作日内" id="transferHint"
                                               name="transferHint" value="${tenantTransfer.transferHint}">
                                    </div>
                                    <span>完成提现</span>
                                </div>
                                <div class="transferTypeDiv hide">
                                    <div class="form-group row">
                                        <label class="col-sm-3 col-form-label text-right">是否启用自动提现功能：</label>
                                        <div class="col-sm-1">
                                            <input type="radio" class="form-control" name="memberAutoTransfer"
                                                   title="启用" value="1"
                                                   <c:if test="${tenantTransfer.memberAutoTransfer == '1'}">checked</c:if> >
                                        </div>
                                        <div class="col-sm-1">
                                            <input type="radio" class="form-control" name="memberAutoTransfer"
                                                   lay-filter="userType" title="停用" value="0"
                                                   <c:if test="${tenantTransfer.memberAutoTransfer == '0'}">checked</c:if> >
                                        </div>
                                    </div>
                                </div>

                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-8 text-right">
                                <button type="submit" class="btn btn-primary">保存设置</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>--%>
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">提现设置</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content" style="padding-bottom: 150px">
                    <form class="form-horizontal m-t layui-form" id="frmTenantTransfer">
                        <div class="form-group row">
                            <input id="transferId" name="transferId" value="${info.transferId}" type="hidden">
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">单笔最大金额(元)</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="singleMaxAmount" value="${info.singleMaxAmount}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">单笔最小金额(元)</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="singleMinAmount" value="${info.singleMinAmount}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">当日总金额(元)</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="todayTotalAmount" value="${info.todayTotalAmount}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">当日总次数</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="todayTotalNum" value="${info.todayTotalNum}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">单人单卡当日最高提现金额</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="upperAmouny" value="${info.upperAmouny}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">手续费类型</label>
                            <div class="col-sm-4">
                                <select class="form-control" name="formalitiesType">
                                    <option value="0"
                                            <c:if test="${info.formalitiesType eq '0'}">selected</c:if>   >按比例算
                                    </option>
                                    <option value="1"
                                            <c:if test="${info.formalitiesType eq '1'}">selected</c:if>  >按单笔算
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">扣除手续费方式</label>
                            <div class="col-sm-4">
                                <select class="form-control" name="formalitiesMode" >
                                    <option value="0"
                                            <c:if test="${info.formalitiesMode eq '0'}">selected</c:if>  >提现金额扣除
                                    </option>
                                    <option value="1"
                                            <c:if test="${info.formalitiesMode eq '1'}">selected</c:if>  >账户余额扣除
                                    </option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">单笔提现收取比例</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="singleProportion" value="${info.singleProportion}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">单笔提现收取费用</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" name="singleCost" value="${info.singleCost}">
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">提现再充值则扣规则</label>
                            <div style="display:inline" class="col-sm-8 col-sm-8" >
                                <span class="col-sm-2  col-form-label text-left" >提现</span>
                                <input type="text" id="transferNoRebate" name="transferNoRebate"  style="width: 10%; border-bottom: 2px solid #666;"
                                       value="${info.transferNoRebate}">
                                <span class="col-sm-2  col-form-label text-left">次后,再充值消费无折扣</span></div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">提现再充值赠送权益金规则</label></br>
                            <div class="col-sm-8 col-sm-8" >
                                <span class="col-sm-2  col-form-label text-left" >提现</span>
                                <input type="text" id="transferNoMoney" name="transferNoMoney"  style="width: 10%; border-bottom: 2px solid #666;"
                                       value="${info.transferNoMoney}">
                                <span class="col-sm-2  col-form-label text-left">次后,再充值不赠送权益金</span>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <button type="submit" class="btn btn-primary">保存</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    layui.use(['table', 'laydate','element'], function () {
        var table = layui.table, form = layui.form, $ = layui.jquery;
    });

    addTenantTransfer.init();
</script>
</body>
</html>
